<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript">

    </script>
</head>
<body>
<form method="post" action="info.action">
    用户名 : <input type="text" name="user.username" value="<s:property value="user.username"/>"/>
    密　码 : <input type="password" name="user.password" value="<s:property value="user.password"/>"/>
    <input type="submit" value="提交"/>
</form>
<a href="info.action?user.username=Simon&user.password=password">利用script get方式进入action</a>
<h1>用户名 : <s:property value="user.username"/></h1>
<h1>密　码 : <s:property value="user.password"/></h1>
</body>
</html>
